package se.tinkerway.bomberman.controller;

import se.tinkerway.bomberman.domain.Bomberman;
import se.tinkerway.bomberman.domain.TileMap;
import se.tinkerway.bomberman.view.KeyboardInterface;

public class GameController {
	private KeyboardController playerController1;
	private TileMap map;
	
	public GameController(TileMap map, Bomberman bomberman, KeyboardInterface keyboardInterface1) {
		this.map = map;
		playerController1 = new KeyboardController(bomberman, keyboardInterface1);
	}
	
	public void perform() {
		map.timeTick(50);
		playerController1.perform();
	}
}
